-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing tests for multi_ptr
aliases for access::address_space::generic
#935
Conversation
Add `(decorated_|raw_)generic_ptr` aliases definitions. These aliases were previously referenced in the SYCL specification, but not defined and not tested in the CTS. Signed-off-by: Victor Perez <victor.perez@codeplay.com>
multi_ptr
aliases for access::address_space::generic
multi_ptr
aliases for access::address_space::generic
Does not compile as this adds a new alias to the spec. |
Please move the new checks into a compile-time disabled test case! |
Signed-off-by: Victor Perez <victor.perez@codeplay.com>
I went with a simple approach as that'd mean having conditionally compiled template functions to avoid using an undefined type and would overcomplicate tests too much to get same degree of coverage. |
Note this same approach is taken in other places like
|
It might be simpler but it also hides the fact that an implementation does in fact not fully pass the test case. If you use the Edit: I can see that it might be annoying to get it working with the whole typing boilerplate that is going on for those tests. Alternatively you could add an |
I defined two additional tests. I still need conditional compilation as they would fail to compile otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add
(decorated_|raw_)generic_ptr
aliases definitions.These aliases were previously referenced in the SYCL specification, but not defined and not tested in the CTS.